home *** CD-ROM | disk | FTP | other *** search
/ Turnbull China Bikeride / Turnbull China Bikeride - Disc 2.iso / STUTTGART / UTIL / DESKTOP / BLACKHOLE / !BlakHole2 / !FatHelp / !ReadMe < prev    next >
Text File  |  1996-01-02  |  12KB  |  194 lines

  1. {sprite}fatanna
  2. {title}Fat Help
  3. {centre}This help system was written by and is
  4. {centre}copyright Fat German Productions 1995.
  5. {subhead}About the Help System
  6. The FatHelp system displays help about a selection of topics. It can also tailor its help to suit the experience of the user. This help explains how to get the most out of the FatHelp system.
  7. {subhead}Choosing a New Topic
  8. [12]
  9. Clicking the middle mouse button (MENU) over this window will give you a menu. If you move right off 'Topic' you will get a list of the available topics. Simply choose a topic from that list.
  10. You can also open this menu by clicking MENU over the FatHelp icon on the iconbar.
  11. [34]
  12. Click MENU over either this window or the FatHelp iconbar icon and choose a topic from the 'Topic' submenu.
  13. [1234]
  14. {subhead}Changing the Technical Level
  15. From the same menu, select the 'Level' submenu and choose the help level you require. Level 1 is simple help for new users and level 4 is advanced help for experienced users. The help displayed in the window will change to reflect your new level.
  16. {subhead}Changing the Size of the Window
  17. You can change the size of the window by dragging the resize icon at the bottom right hand corner.
  18. If you change the width of the window the text will reformat so it is still all visible. I hope.
  19. {subhead}The Browser Window
  20. [12]
  21. The browser may have opened automatically. If you can't see it, click the left mouse button (SELECT) over the FatHelp icon on the iconbar. You can use the browser window to select the Technical Level and the help topic. Changing the Technical Level from the browser window does not do anything until you select a new help topic.
  22. [34]
  23. The browser may have opened automatically. If you can't see it, click SELECT over the FatHelp iconbar icon. Changing the Technical Level from the browser window does not do anything until you select a new help topic.
  24. [1234]
  25. {title}Copyright Notice
  26. FatHelp is copyright Fat German Productions. You may not modify any of the program files at all. You may not distribute it without my permission. However, people wishing to use FatHelp for their own programs may do so provided they have my permission and they comply with the rules set out below. 
  27. Right, I think that covers it.
  28. [123]
  29. To discover how to use FatHelp to display your own help, select Technical Level 4.
  30. [4]
  31. {title}FatHelp for Programmers
  32. {subhead}How to use FatHelp to display your own help
  33. It's dead simple really. You need to create one text file for each topic. (In fact you can use more than one file for a topic, you'll see how below). The help file is just normal text, except that it contains some markers to tell FatHelp which bits of text are relevant to which technical level. There are also some formatting commands.
  34. {subhead}The Text Itself
  35. I'm not going to give guidelines for how to write help because that would be far too schoolteacherish. A FatHelp file is just a text file. You do not have to worry about wrapping words to 80 columns or whatever because FatHelp will format your file for you. For reference, this file is !FatHelp.Help.fathelp
  36. {subhead}Technical Levels
  37. Technical Levels are separated by including numbers in square brackets at the start of a line.
  38. In the following example, I have used round brackets () instead of square ones because otherwise the program will try and use them as markers....
  39.  
  40. (1)
  41. This line will only be displayed if the lowest technical level is selected.
  42. (2)
  43. This will only be displayed if the second help level is selected
  44. (34)
  45. This will be displayed if either the 3rd or 4th help level is selected The paragraph can continue and will only be displayed if level 3 or 4 is selected
  46. (2)
  47. This will only be displayed on level 2.
  48. (1234)
  49. Until I do this. This paragraph will always be included.
  50.  
  51. So, on Level 3, the above would read
  52. This will be displayed if either the 3rd or 4th help level is selected The paragraph can continue and will only be displayed if level 3 or 4 is selected
  53. Until I do this. This paragraph will always be included.
  54. {subhead}Formatting Commands
  55. Formatting commands are marked by curly brackets {}. The commands are all case sensitive. You cannot have more than one command per line and they are all case sensitive.
  56. The available commnds are:
  57. {subsub}{title}some text
  58. This command will cause 'some text' to be displayed as a title - i.e centred and in a large bold font.
  59. {title}This is a Title
  60. {subsub}{subhead}some text
  61. This command will cause 'some text' to be displayed as a sub-heading.
  62. {subhead}This is a sub-heading
  63. {subsub}{subsub}some text
  64. This causes 'some text' to be displayed as a sub-sub heading.
  65. {subsub}This is a sub-sub heading
  66. {subsub}{centre}some text
  67. This will cause 'some text' to be displayed in the normal font, but centered.
  68. {centre}This text is centered
  69. {subsub}{sprite}spritename
  70. This displays a sprite from your configured Sprite file. See below for how to include a sprite file with your help. The sprite will always be centered. 16-colour sprites MUST have a palette. 256-colour sprites must have NO palette. I would recommend using only square-pixel sprites (e.g. mode 27) since thse display correctly in all modes on a RiscPC.
  71. {subsub}{tab}
  72. This command must be the only thing on a line. It causes all subsequent lines of normal text (i.e. not headings etc) to be indented. The indent can be terminated by the command
  73. {subsub}{notab}
  74. which must also be the only thing on a line.
  75. {tab}
  76. This text is indented. It will stay this way until I terminate it with a {notab} command. The {tab} command is the only command that will span multiple lines. All the others only apply to the line they are on.
  77. {notab}
  78. Finished Help and Sprite files should be saved in the directory 'Help' inside !FatHelp
  79. Your help file must end with a Carriage Return (i.e. hit 'Return' at the end of the last line).
  80. {subhead}The Config File
  81. The other thing to edit is the file 'Config' from inside !FatHelp.
  82. The order and Case Sensitivity of the things in Config is important. Bear
  83. that in mind.
  84. The following is a sample Config file. The lines beginning '#' are comments
  85. which are there to explain the purpose of each line.
  86. {tab}
  87. # This line specifies the name of the application as it will appear in the
  88. # Task Manager window and the title bar of the FatHelp browser window.
  89. AppName:Black Hole Help
  90.  
  91. # This is what will appear in the icon above the four radio buttons
  92. # in the browser window
  93. LevelTitle:Select Level of Technical Detail
  94.  
  95. # This is what will appear in the icon above the pane in the browser
  96. TopicTitle:Then Click on Topic of Interest
  97.  
  98. # This is the description of Help Level 1
  99. Level1:What's going on then?
  100.  
  101. # Ditto for Levels 2,3, and 4
  102. Level2:Not too many long words
  103. Level3:Everything but the hard bits
  104. Level4:My Brain! My Brain!
  105.  
  106. # Now begin the descriptions of the topics.
  107. # The icons will appear in this order in the menu and the browser.
  108. # It is important that the first one is Help1, the second is Help2 etc.
  109. # Case Sensitivity is essential.
  110. Help1
  111. # This is the name of the icon in the browser (from the WIMP sprite pool)
  112. Icon:!help
  113. # Now follows a list of the files that will be used to build up the help.
  114. File:Misc
  115. File:TheEnd
  116. # This is the name of the sprite file to use
  117. Sprites:MiscS
  118. # This is the description line that appears next to the icon.
  119. Descr:Miscellaneous
  120.  
  121. # Further topics follow
  122. Help2
  123. Icon:!BlakHole2
  124. File:Config
  125. Descr:Configuration Options
  126.  
  127. Help3
  128. Icon:Bin2
  129. File:Singlarity
  130. Descr:Singularity
  131.  
  132. Help4
  133. Icon:Directory
  134. File:Auto_Saver
  135. Descr:AutoSaver
  136. {notab}
  137. {subhead}Calling FatHelp from Other Programs
  138. You can call FatHelp from your own program and tell it to display a particular topic by adding a parameter to the command line. E.g. from BASIC you could do SYS"Wimp_StartTask","<fatHelp$Dir>.!run -topic=fathelp". This will make FatHelp start up, and search the configuration file until it finds the line combination
  139. Help<number>
  140. File:fathelp
  141. It will then go directly to displaying that Help topic using the last Technical Level the user used (or level 3 if the program hasn't been used before).
  142. {subhead}Considerations
  143. FatHelp is not really suited to displaying enormous documents. The code to redraw and format the text is very messy and relies on completely reformatting all the text every time the window is resized. And it's in BASIC, apart from a tiny bit of ARM code. This is not really a great idea but it runs at an acceptable speed on my RiscPC 700. So there. I am probably not going to change this because the way I've done it is easy.
  144. Secondly, headings that are too long to fit in the window will simply disappear off the edge. I may rectify this at some point in the future, but I doubt it.
  145. Lines that are centered but too long for the window WILL be split over multiple lines, but only the first will be centered. This is really crap but I can't be bothered to fix it right now.
  146. {centre}I think that should probably explain it. Byee.
  147. [1234]
  148. {subhead}Disclaimer:
  149. This program is supplied 'as is' with no guarantee of its suitability for any purpose. I will not be held responsible for any loss of data occuring through the use or misuse of this program
  150. {subhead}Public Domain Notice:
  151. The FatHelp System is released by courtesy of the Fat German in association with the Great Green Gollywog and his miners. It may be freely copied and used, as long as the following conditions are met:
  152. {tab}
  153. a) That this notice is distributed unchanged with every copy.
  154. b) That the application is supplied unchanged.
  155. c) No charge is made for the distribution. Public domain libraries may make a small charge to cover distribution costs
  156. d) That nobody uses a commercial application where a public domain one would do just as well.
  157. e) That you do not allow your computer to take over your life and turn you into a sad, lonely creature, only able to communicate via electronic mail and unable to relate to the real world, skin turning translucent from lack of natural light, fingers bent and bruised from excessive typing, only able to think in ARM code and, worst of all, a fan of Star Trek.
  158. {notab}
  159. {subhead}Rules for 3rd party use
  160. Any third party wishing to include FatHelp as part of a project is welcome to do so provided they follow these rules.
  161. {tab}
  162. 1) No third party is to distribute FatHelp or any of its files without first contacting me for permisson.
  163. 2) Parties wishing to use FatHelp as part of a project which is to be sold for profit will be expected to pay a license fee to me.
  164. 3) FatHelp may not be distributed in modified form, with the exception of the 'Config' file and the files in the 'Help' directory.
  165. 4) The files !ReadMe and !Sprits must be included inside !FatHelp.
  166. {notab}
  167. [4]
  168. {subhead}Potential Future Enhancements
  169. Ideally I would like to get rid of all this curly bracket nonsense and use HTML as the document description language. This would make them easily portable, etc. and might even end up being a vaguely good idea. However I have not sufficient patience (yet) to even attempt to read the HTML specification yet alone write code to implement it. Especially in BASIC. Any takers? Ha Ha.
  170. [1234]
  171. {title}© Fat German Productions 1995.
  172. 'You raise up your head and you ask "Is this where it is?"
  173.  and somebody points to you and says "It's his"
  174.  and you say "what's mine?" and somebody else says "well what is?"
  175.  and you say "Oh my God am I here all alone?"
  176.  but something is happening and you don't know what it is
  177.  do you, Mr. Jones?'
  178.  
  179.  Bob Dylan, prophetically describing a typical afternoon spent debugging...
  180.  
  181.    (From the album Highway 61 Revisited).
  182. {subhead}Contacting Me
  183. {subsub}Snail Mail
  184. {tab}
  185. Mark Greenwood
  186. 122 Miswell Lane
  187. Tring
  188. Herts
  189. HP23 4EU
  190. {subsub}Email
  191. mgreenwo@madge.com
  192. {notab}
  193.  
  194.